package com.zyx.mapper;

import com.zyx.pojo.Auto;
import com.zyx.pojo.AutoExample;

import java.util.Date;
import java.util.List;

import com.zyx.pojo.AutoQuery;
import org.apache.ibatis.annotations.Param;

public interface AutoMapper {

    //根据id查询汽车类型有多少图片
    int queryPicture(int autoId);

    int queryMax(String autoName);

    int queryMin(String autoName);

    int countByExample(AutoExample example);

    int queryByTime();

    Auto selectId(Date date);

    List<Auto> selectBy(Auto auto);

    //List<Auto> selectByAll(AutoQuery autoQuery);

    int deleteByExample(AutoExample example);

    int deleteByPrimaryKey(Integer autoId);

    int insert(Auto record);

    int insertSelective(Auto record);

    List<Auto> selectByExample(AutoExample example);

    Auto selectByPrimaryKey(Integer autoId);

    int updateByExampleSelective(@Param("record") Auto record, @Param("example") AutoExample example);

    int updateByExample(@Param("record") Auto record, @Param("example") AutoExample example);

    int updateByPrimaryKeySelective(Auto record);

    int updateByPrimaryKey(Auto record);
}